import Vue from 'vue'
import VueRouter from 'vue-router'
import Day from '../views/Day.vue'

Vue.use(VueRouter)

const routes = [
	{
		path: '/Day',
		name: 'day',
		component: Day
	},
	{
		path: '/Mouth',
		name: 'mouth',
		component: () => import('@/views/Mouth.vue')
	},
	{
		path: '/Year',
		name: 'year',
		component: () => import('@/views/Year.vue')
	},
	{
		path: '/*',
		name: 'default',
		redirect: '/Day'
	}
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
